import {customeStruct} from '../utils';
const itf = customeStruct.interface;
export const InitData = itf({
    payload: itf({
        isDealerUser: 'boolean',
        brands: [itf({
            id: 'string',
            name: 'string',
            code: 'string'
        })],
    })
});
export const List = itf({
    payload: itf({
        content: [itf(Object.assign({
            id: 'string',
            code: 'string? | null',
            name: 'string? | null',
            shortCode: 'string? | null',
            shortName: 'string? | null',
            country: 'string? | null',
            province: 'string? | null',
            city: 'string? | null',
            contactNumber: 'string? | null',
            address: 'string? | null',
            agentKind: 'number? | null',
            rowVersion: 'string',
        }))],
        totalElements: 'number',
    })
});
export const Detail = itf({
    payload: itf(Object.assign({
        id: 'string',
        code: 'string? | null',
        name: 'string? | null',
        shortCode: 'string? | null',
        shortName: 'string? | null',
        country: 'string? | null',
        province: 'string? | null',
        city: 'string? | null',
        contactNumber: 'string? | null',
        address: 'string? | null',
        agentKind: 'number? | null',
        fax: 'string? | null',
        zipCode: 'string? | null',
        rowVersion: 'string',
        dealerResourceLists: [
            itf({
                id: 'string',
                lV1Code: 'string? | null',
                lV1Name: 'string? | null',
                lV2Code: 'string? | null',
                lV2Name: 'string? | null',
                lV3Code: 'string? | null',
                lV3Name: 'string? | null',
                lV4Code: 'string? | null',
                lV4Name: 'string? | null',
                productCode: 'string? | null',
                productName: 'string? | null'
            })
        ],
    }))
});
export const DealerResourceList = itf({
    payload: itf({
        content: [
            itf({
                lV1Code: 'string? | null',
                lV2Code: 'string? | null',
                lV3Code: 'string? | null',
                lV4Code: 'string? | null',
                lv5Code: 'string? | null',
                lv5Name: 'string? | null',
            })
        ]
    })
});
